package com.example.educationblockchain.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.educationblockchain.model.AdminLogin;
import com.example.educationblockchain.mapper.AdminLoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminLoginService {
    @Autowired
    AdminLoginMapper adminLoginMapper;

    public List<AdminLogin> queryAll(){
        return adminLoginMapper.selectList(new QueryWrapper());
    }

    public void insertAdminLogin(AdminLogin adminLogin){
        adminLoginMapper.insertAdminLogin(adminLogin);
    }
}
